package com.jiang.mydemomaven.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/mytest")
@RestController
public class MyTestController {
	@RequestMapping("/str")
	public String str() {
		
		
		return "only str controller！！手指";
	}
	
	@RequestMapping("/execption")
	public String error() throws Exception {
		if(true)
			throw new Exception("异常示例");
		
		return "only str controller！！手指";
	}
}
